package com.namecard.namecardapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author wzx
 * @since 2023-07-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("special_order")
public class SpecialOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 买家id
     */
    private String userId;

    /**
     * 对象详情
     */
    private String targetDetail;

    /**
     * 标签详情
     */
    private String tagDetail;

    /**
     * 对象邮箱
     */
    private String targetEmail;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 0:未删除1：逻辑删除2：真实删除
     */
    private Integer delFlag;
}
